angular.module('main').config(function($stateProvider, $urlRouterProvider) {
    $urlRouterProvider.otherwise('/login');

    $stateProvider.state('signup', {
        url: '/signup',
        templateUrl: 'templates/signup.html'
    }).state('login', {
        url: '/login',
        templateUrl: 'templates/login.html'
    }).state('forget_password', {
        url: '/forget_password',
        templateUrl: 'templates/forget_password.html'
    }).state('project.apis', {
        url: '/apis?project_id',
        templateUrl: 'templates/apis.html'
    }).state('project.edit_api', {
        url: '/edit_api?api_id&project_id',
        templateUrl: 'templates/edit_api.html'
    }).state('project.add_api', {
        url: '/add_api?project_id',
        templateUrl: 'templates/add_api.html'
    }).state('project', {
        url: '/project',
        templateUrl: 'templates/project.html'
    }).state('project.projects', {
        url: '/projects?type',
        templateUrl: 'templates/projects.html'
    }).state('project.project_management', {
        url: '/project_management?project_id',
        templateUrl: '/templates/project_management.html'
    }).state('project.add_project', {
        url: '/add_project',
        templateUrl: '/templates/add_project.html'
    }).state('project.edit_project', {
        url: '/edit_project?project_id',
        templateUrl: '/templates/edit_project.html',
        controller: 'edit_projectCtrl'
    }).state('email_confirm', {
        url: '/email_confirm',
        templateUrl: 'templates/email_confirm.html'
    });
});